using Services;
using UnityEngine;

public class PointTrigger_Character : PointTrigger<Character>
{
    protected CharacterManager characterManager;

    protected override void Awake()
    {
        base.Awake();
        characterManager = ServiceLocator.Get<ActionController>().CharacterManager;
    }

    protected override Character GetContact(Vector2Int position)
    {
        return characterManager.GetCharacterAt(position);
    }
}